package com.foreknow.demo10;

public class Person {
    private int age;

    public Person(int age){
        this.age = age;
    }
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void main(String[] args) {
        Person p1 = new Person(20);
        Person p2 = new Person(20);
        System.out.println(p1==p2);
        System.out.println(p1.equals(p2));
    }
}
